routes = [
  {
    path: '/',
    url: './index.html',
  },
  {
    path: '/pay/alipay',
    componentUrl: './pages/pay/alipay.html',
  },
  {
	path:'/message',
	componentUrl: "./pages/message/message.html"
  },
  {
	path:'/home/search',
	componentUrl: "./pages/home/search.html"
  },
  {
    path: '/cart',
    componentUrl: './pages/cart/cart.html',
  },
  {
    path: '/order/list',
    componentUrl: './pages/order/list.html',
  },
  {
    path: '/order/shipping/history',
    componentUrl: './pages/order/shipping.html',
  },
  {
    path: '/order/assess',
    componentUrl: './pages/order/assess.html',
  },
  {
    path: '/order/confirm',
    componentUrl: './pages/order/confirm.html',
  },
  {
    path: '/center',
    componentUrl: './pages/person/center.html',
  },
  {
    path: '/product/:productId',
    componentUrl: './pages/product/product-detail.html',
  }
  ,
  {
    path: '/lot-batch/form',
    async: function (routeTo, routeFrom, resolve, reject) {
    	resolve(
    			{
    				componentUrl: './pages/lot-batch/lot-batch-form.html',
    			},
    			{
    				context: {
    					logBatchInfo: {totalcnt: '', sdesc: "", cname: "", sn: '', startdate: ''},
    				}
    			}
    	);
    }
  },
  // Default route (404 page). MUST BE THE LAST
  {
    path: '(.*)',
    url: './pages/404.html',
  },
];
